<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  class Fn{
    constructor(){
      this.hello = "hello"
    }
    init(){
      console.log(this.hello)
    }
  }

  class Parent extends Fn{
    constructor(m){
      super();
      this.msg = m
    }
    show(){
      console.log(this.msg)
    }
  }
  

  class Child extends Parent{
    constructor(m){
      super(m)
    }
    // show(){
    //   console.log("zileideshow")
    // }
  }

  const p = new Parent("hello");
  console.log(p);
  p.show();

  const c = new Child("world");
  console.log(c);
  c.show();
  c.init();


  // 子类中找父类

  // 父类是子类的超类
  
</script>
</html>